home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 1995 #5 & #6 / Amiga Plus CD - 1995 - No. 5 and 6.iso / pd / daten / easyvideo / install-easyvideo < prev    next >
Text File  |  1995-06-15  |  5KB  |  222 lines

  1. ; Installations script für EasyVideo
  2.  
  3. (set @default_dest "SYS:EasyVideo")
  4.  
  5. ; Fehler / Cleanup
  6.  
  7. (onerror
  8.         (makeassign "EasyVideo" (safe))
  9. )
  10.  
  11. ; schauen ob updatet
  12.  
  13. (set is_update 0)
  14. (set EVideo_dest (getassign "EasyVideo" "a"))
  15.  
  16. ; Wenn Update, ob überschreiben
  17.  
  18. (if EVideo_dest
  19.     ; then
  20.         (if (askbool
  21.             (prompt "Ihr EasyVideo befindet sich schon im Verzeichnis \""
  22.                                         EVideo_dest
  23.                                         "\". Möchten Sie in dieses Verzeichnis updaten?"
  24.                         )
  25.                         (help
  26. "Der Installer hat schon eine Kopie von EasyVideo entdeckt. Soll "
  27. "diese Installation erhalten werden oder möchten Sie ein Update (YES) ? "
  28.                         )
  29.                         (default 1)
  30.                 )
  31.  
  32.                 (set is_update 1)               ; if user wants in same place
  33.  
  34.                 (set EVideo_dest                      ; if user wants in different place
  35.             (askdir
  36.             (prompt "Auf welche Disk oder Verzeichnis soll EasyVideo intalliert werden?")
  37.                 (help @askdir-help)
  38.                 (default "SYS:EasyVideo")
  39.             )
  40.                 )
  41.         )
  42.     ; else
  43.     (
  44.         (set EVideo_dest
  45.             (askdir
  46.                 (prompt "Auf welche Disk oder Verzeichnis soll EasyVideo intalliert werden?")
  47.                 (help @askdir-help)
  48.                 (default "SYS:EasyVideo")
  49.             )
  50.         )
  51.     )
  52. )
  53.  
  54. (if (not (exists EVideo_dest) )
  55.     (makedir EVideo_dest (prompt "Erstelle Direktory") (infos) (confirm) (help) )
  56. )
  57.  
  58. (makeassign "EasyVideo" EVideo_dest (safe))
  59.  
  60. (makeassign "VideoInstallDisk" "" (safe))
  61.  
  62. ; Make EasyVideo drawer & icon if not there
  63.  
  64. (if (not is_update)
  65.     (makedir EVideo_dest (infos))
  66. )
  67.  
  68. (set @default-dest EVideo_dest)
  69.  
  70. (copyfiles
  71.     (source "VideoInstallDisk:")
  72.     (pattern "EasyVideo#?")
  73.     (dest EVideo_dest)
  74. )
  75. (copyfiles
  76.     (source "VideoInstallDisk:MyVideo.dat")
  77.     (dest EVideo_dest)
  78. )
  79.  
  80. (copyfiles
  81.     (source "VideoInstallDisk:Doku")
  82.     (dest (tackon EVideo_dest "Doku") )
  83.     (all)
  84.     (infos)
  85. )
  86.  
  87. (copyfiles
  88.     (source "VideoInstallDisk:Doku.info")
  89.     (dest EVideo_dest)
  90. )
  91.  
  92. (copyfiles
  93.     (source "VideoInstallDisk:Rexx")
  94.     (dest (tackon EVideo_dest "Rexx") )
  95.     (all)
  96.     (infos)
  97. )
  98.  
  99.  
  100. ( if (EXISTS("S:Video.config"))
  101.   (set copy_oldprefs
  102.         (askbool (prompt "Standardeinstellungen S:Video.config überschreiben?")
  103.                  (help "Ja, existierendes Konfigurationsfile in S: wird überschrieben. "
  104.                  )
  105.         )
  106.   )
  107. )
  108.   
  109. ( if copy_oldprefs
  110.     ( copyfiles
  111.         (source "VideoInstallDisk:S/Video.config")
  112.         (dest "S:" )
  113.         (infos)
  114.     )
  115.     ( transcript "Standardeinstellungsfile Video.config wird nicht nach S: kopiert." )
  116. )
  117.  
  118. ( if (EXISTS("EnvArc:Video.config"))
  119.   (set copy_prefs 
  120.         (askbool (prompt "Standardeinstellungen EnvArc:Video.config überschreiben?")
  121.                  (help "Ja, existierende Konfigurationsfile in EnvArc: wird überschrieben. "
  122.                  )
  123.         )
  124.   )
  125.   ( set copy_prefs 1 )
  126. )
  127.   
  128. ( if copy_prefs
  129.     ( copyfiles
  130.         (source "VideoInstallDisk:S/Video.config")
  131.         (dest "EnvArc:" )
  132.         (infos)
  133.     )
  134.     ( transcript "Standardeinstellungsfile Video.config wird nicht nach ENVARC: kopiert." )
  135. )
  136.  
  137. ( if (EXISTS "VideoInstallDisk:libs/amigaguide.library" (noreq))
  138.  (
  139.   (working "Installiere AmigaGuide...")
  140.   (copylib
  141.     (source "VideoInstallDisk:libs/amigaguide.library")
  142.     (dest "LIBS:")
  143.   )
  144.   (copyfiles
  145.     (source "VideoInstallDisk:c/amigaguide")
  146.     (dest "C:")
  147.     (infos)
  148.   )
  149.  )
  150. )
  151.  
  152. ( if (EXISTS "VideoInstallDisk:libs/asl.library" (noreq))
  153.  (
  154.   (working "Aktualisiere LIBS:...")
  155.   (copylib
  156.     (source "VideoInstallDisk:libs/explode.library")
  157.     (dest "LIBS:")
  158.   )
  159.   (copylib
  160.     (source "VideoInstallDisk:libs/rexxsupport.library")
  161.     (dest "LIBS:")
  162.   )
  163.   (copylib
  164.     (source "VideoInstallDisk:libs/rexxsyslib.library")
  165.     (dest "LIBS:")
  166.   )
  167.   (copylib
  168.     (source "VideoInstallDisk:libs/asl.library")
  169.     (dest "LIBS:")
  170.   )
  171.   (copylib
  172.     (source "VideoInstallDisk:libs/mathffp.library")
  173.     (dest "LIBS:")
  174.   )
  175.   (copylib
  176.     (source "VideoInstallDisk:libs/mathieeedoubbas.library")
  177.     (dest "LIBS:")
  178.   )
  179.   (copylib
  180.     (source "VideoInstallDisk:libs/mathieeedoubtrans.library")
  181.     (dest "LIBS:")
  182.   )
  183.  )
  184. )
  185.  
  186. (working "Copiere Fonts...")
  187. (copylib
  188.     (source "VideoInstallDisk:libs/diskfont.library")
  189.     (dest "LIBS:")
  190. )
  191. (copyfiles
  192.     (source "VideoInstallDisk:fonts")
  193.     (dest "FONTS:")
  194.     (all)
  195.     (infos)
  196. )
  197.  
  198. (working "")
  199.  
  200. ; modify S:User-Startup
  201.  
  202. (startup "EasyVideo"
  203.         (prompt
  204.                 "Ich definiere ein Assign für EasyVideo in der \"S:user-startup\" "
  205.                 "Als Direktory kann in der Konfiguration dann \"EasyVideo:\" angegeben werden."
  206.         (help "Ist besser so!")
  207.         (command "ASSIGN Video: \"" EVideo_dest "\"")
  208.         )
  209. )
  210.  
  211. ; reinitialize assigns
  212.  
  213. (makeassign "EasyVideo" EVideo_dest)
  214.  
  215. (complete 100)
  216.  
  217.  ; cleanup
  218.  
  219. (makeassign "VideoInstallDisk" (safe))
  220.  
  221. (exit)
  222.